package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.EmployeesModel;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.persistence.EntityManager;

/**
 *
 * @author Krzysztof
 */
@Local
public interface EmployeeDAO {
    
    public List<EmployeesModel> getAllEmployees();

    public EmployeesModel getEmployeeById(Integer id);

    public EntityManager getEntityManager();

    public void addEmployee(EmployeesModel em);
    
    public void updateEmployee(EmployeesModel em);

    public void removeEmployeeById(Integer id);

    public int getEmployeesModelSize();
    
    public int getEmployeesByEmploymentDateSize(Date employmentDate);
    
    
}